package org.example.POJO.game;

import org.example.Page.GamePanel;

import java.awt.*;

public class Che extends Chess {
    public Che(int camp, Point p) {
        super("che", camp, p);
    }
    public Che( int camp,int px) {
        this(camp, new Point(px,1));
    }

    @Override
    public boolean isAbleMove(Point tp, GamePanel gamePanel) {
        return (isLine(tp) > 1) && getCount(tp,gamePanel) == 0;
    }
}
